<?php

/**
 * Created by PhpStorm.
 * User: fanfz_000
 * Date: 2015/4/22 0022
 * Time: 14:52
 * 作用 ：
 */
class Visit_info extends CI_Controller
{
    function __construct()
    {
        parent::__construct();
    }

    //显示访客信息
    function show_visit_info()
    {
        $page = $this->input->post("page");
        $limit = $this->input->post("limit");
        //显示访客数据
        $this->load->model('Visitinfo_model', 'visit_info', TRUE);
        $data = $this->visit_info->show_visit_info($page, $limit);
        echo json_encode($data);
    }

    //显示7天内，访客数量数据
    function show_visit_total()
    {
        $this->load->model('Visitinfo_model', 'visit_info', TRUE);
        $data = $this->visit_info->show_visit_total();
        echo $data;
    }
}